package com.liumh;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	public static void main(String[] args) {
		try(ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml")) {
			Login login = (Login)context.getBean("login");
//			Login login = new Login();
//			login.setName("张三");
			
			login.show();
		} catch (Exception e) {
			System.out.println(e.getLocalizedMessage());
		}
	}

}
